package com.jeesite.modules.fl.web.weixin;

import com.jeesite.common.shiro.realm.AuthorizingRealm;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;

public class WeixinRealm extends AuthorizingRealm {
  @Override
  protected void assertCredentialsMatch(AuthenticationToken authcToken, AuthenticationInfo info) throws AuthenticationException {
    if (!(authcToken instanceof WeixinToken)) {
      super.assertCredentialsMatch(authcToken, info);
    }
  }
}
